package com.flyduck.system.vo.dictData.trans;


import cn.hutool.core.bean.BeanUtil;
import com.flyduck.system.entity.SysDictDataEntity;
import com.flyduck.system.vo.dictData.SysDictDataReqVO;
import com.google.common.base.Function;


/**
 * @program: flyduck-platform
 * @description:
 * @author: flyduck
 * @create: 2021-02-01 12:42
 **/
public class SysDictDataReqVOToSysDictDataEntity implements Function<SysDictDataReqVO, SysDictDataEntity> {

    @Override
    public SysDictDataEntity apply(SysDictDataReqVO reqVO) {
        SysDictDataEntity entity = new SysDictDataEntity();
        BeanUtil.copyProperties(reqVO,entity);
        entity.setSort(Integer.valueOf(reqVO.getSort()));
        return entity;
    }
}
